<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
    <table>
        <tr>
            <th>用户编号</th>
            <th>用户名</th>
            <th>真实姓名</th>
        </tr>
        <#list users as user>
            <#if user_index%2==0>
                <tr bgcolor="#8a2be2">
                    <td>${user.userId}</td>
                    <td>${user.userName}</td>
                    <td>${user.realName}</td>
                </tr>
            </#if>
            <#if user_index%2!=0>
                <tr>
                    <td>${user.userId}</td>
                    <td>${user.userName}</td>
                    <td>${user.realName}</td>
                </tr>
            </#if>
        <#--<#if user.id==1></#if>-->
        </#list>
    </table>
</body>
</html>